// src/api/ai/index.js
import request from '@/utils/request'

// 根据文章ID生成AI摘要
export function generateAIExcerptAPI(id) {
    return request({
        url: `/bk/article/system/article/generate-ai-excerpt/${id}`,
        method: 'post'
    })
}

// 获取文章优化建议
export function getArticleOptimizationAPI(data) {
    return request({
        url: '/ai/optimize-article',
        method: 'post',
        data: data
    })
}